﻿using System;
using CommonLibrary.Helpers;

namespace CommonLibrary.Exceptions
{
    public partial class SimpleSmartException : Exception
    {
        public SimpleSmartException(string message) : base(message)
        {
            LogSystem.LogErrorMessage(message);
        }

        public SimpleSmartException(Exception exception)
            : base(exception.Message, exception.InnerException)
        {
            LogSystem.LogErrorMessage(exception.Message);
        }
    }
}
